import request from '@/utils/request'

// 查询产品库存列表
export function listSysSalesInventory(query) {
  return request({
    url: '/SysSales/SysSalesInventory/list',
    method: 'get',
    params: query
  })
}

// 查询产品库存详细
export function getSysSalesInventory(inventoryId) {
  return request({
    url: '/SysSales/SysSalesInventory/' + inventoryId,
    method: 'get'
  })
}

// 新增产品库存
export function addSysSalesInventory(data) {
  return request({
    url: '/SysSales/SysSalesInventory',
    method: 'post',
    data: data
  })
}

// 修改产品库存
export function updateSysSalesInventory(data) {
  return request({
    url: '/SysSales/SysSalesInventory',
    method: 'put',
    data: data
  })
}

// 删除产品库存
export function delSysSalesInventory(inventoryId) {
  return request({
    url: '/SysSales/SysSalesInventory/' + inventoryId,
    method: 'delete'
  })
}
